package cn.zorbus.laian.domain.repository;

import cn.zorbus.laian.infrastructure.common.command.VideoChangeCommand;
import cn.zorbus.laian.infrastructure.common.command.VideoStatusCommand;
import cn.zorbus.laian.infrastructure.common.view.VideoView;

import java.util.Collection;

/**
 * create in 2023/12/1 20:24
 *
 * @author shishaodong
 * @version 0.0.1
 */
public interface IVideoRepository {


    VideoView findById(String id);

    VideoView findCurrent();


    /**
     * 查找所有的 video
     *
     * @return List
     */
    Collection<VideoView> findAllVideos();

    /**
     * 修改正在播放的视频
     *
     * @param command VideoChangeCommand
     * @return int
     */
    int videoChange(VideoChangeCommand command);

    /**
     * 修改视频播放状态
     *
     * @param command VideoStatusCommand
     * @return int
     */
    int videoStatus(VideoStatusCommand command);
}